package com.me.libgdx_test;

import java.util.Comparator;

public class ClassListComparator{
	
	class SpellComparator implements Comparator<ClassDungeonSpell>{
		@Override
	    public int compare(ClassDungeonSpell object1,ClassDungeonSpell object2) {
	        return (object1.unlock_cost.level<object2.unlock_cost.level ? -1 : (object1.unlock_cost.level==object2.unlock_cost.level ? 0 : 1));
	    }
	}
	
	class ClassComparator implements Comparator<ClassDungeonPlayerClass>{
		@Override
	    public int compare(ClassDungeonPlayerClass object1,ClassDungeonPlayerClass object2) {
	        return (object1.unlock_cost.level<object2.unlock_cost.level ? -1 : (object1.unlock_cost.level==object2.unlock_cost.level ? 0 : 1));
	    }
	}
}
